home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / alaskan-adversary.swf / scripts / frame_68 / PlaceObject2_1015_285 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-11  |  7.1 KB  |  196 lines

  1. onClipEvent(enterFrame){
  2.    function ┬º\x01\x02┬º()
  3.    {
  4.       return 127 % 511 * 5;
  5.    }
  6.    var ┬º\x01┬º = -304 + "\x01\x02"();
  7.    while(true)
  8.    {
  9.       if(eval("\x01") == 331)
  10.       {
  11.          set("\x01",eval("\x01") - 34);
  12.          ┬º┬ºpush(true);
  13.       }
  14.       else if(eval("\x01") == 408)
  15.       {
  16.          set("\x01",eval("\x01") + 435);
  17.          ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  18.          {
  19.             return 127 % 511 * 5;
  20.          }));
  21.       }
  22.       else if(eval("\x01") == 479)
  23.       {
  24.          set("\x01",eval("\x01") - 101);
  25.          var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  26.          {
  27.             return 127 % 511 * 5;
  28.          };
  29.       }
  30.       else
  31.       {
  32.          if(eval("\x01") == 620)
  33.          {
  34.             set("\x01",eval("\x01") - 585);
  35.             break;
  36.          }
  37.          if(eval("\x01") == 297)
  38.          {
  39.             set("\x01",eval("\x01") + 323);
  40.             if(function ┬º\x01\x02┬º()
  41.             {
  42.                return 127 % 511 * 5;
  43.             })
  44.             {
  45.                set("\x01",eval("\x01") - 585);
  46.             }
  47.          }
  48.          else if(eval("\x01") == 646)
  49.          {
  50.             set("\x01",eval("\x01") - 167);
  51.             ┬º┬ºpush("\x0f");
  52.             ┬º┬ºpush(1);
  53.          }
  54.          else if(eval("\x01") == 35)
  55.          {
  56.             set("\x01",eval("\x01") + 611);
  57.          }
  58.          else if(eval("\x01") == 378)
  59.          {
  60.             set("\x01",eval("\x01") + 30);
  61.             ┬º┬ºpush("\x0f");
  62.          }
  63.          else if(eval("\x01") == 40)
  64.          {
  65.             set("\x01",eval("\x01") + 606);
  66.          }
  67.          else if(eval("\x01") == 843)
  68.          {
  69.             set("\x01",eval("\x01") - 177);
  70.             ┬º┬ºpush(!function ┬º\x01\x02┬º()
  71.             {
  72.                return 127 % 511 * 5;
  73.             });
  74.          }
  75.          else if(eval("\x01") == 456)
  76.          {
  77.             set("\x01",eval("\x01") - 322);
  78.          }
  79.          else
  80.          {
  81.             if(eval("\x01") != 666)
  82.             {
  83.                if(eval("\x01") == 134)
  84.                {
  85.                   set("\x01",eval("\x01") + 111);
  86.                   if(_root.paus3)
  87.                   {
  88.                      speed = 0;
  89.                      maxspeed = 0;
  90.                   }
  91.                   if(!_root.paus3)
  92.                   {
  93.                      if(this.hitTest(_root.camera))
  94.                      {
  95.                         speed = 0;
  96.                         maxspeed = 10;
  97.                         damage = 0;
  98.                         grav++;
  99.                         _Y = _Y + grav;
  100.                         while(_root.ground.hitTest(_X,_Y,true))
  101.                         {
  102.                            _Y--;
  103.                            grav = 0;
  104.                         }
  105.                         if(_root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 2,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 6,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height,true))
  106.                         {
  107.                            _X = _X - speed;
  108.                         }
  109.                         if(_root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 2,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 6,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height,true))
  110.                         {
  111.                            _X = _X + speed;
  112.                         }
  113.                         if(_root.ground.hitTest(_X,_Y - _height - 15,true))
  114.                         {
  115.                            grav = 1;
  116.                         }
  117.                         moving = 0;
  118.                         above = 0;
  119.                         if(this._x < _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 25 && this._currentframe != 30 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
  120.                         {
  121.                            this._x += movespeed;
  122.                            _xscale = scale;
  123.                            this.gotoAndStop("run");
  124.                            attack = 0;
  125.                            moving = 1;
  126.                         }
  127.                         else if(this._x > _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 30 && this._currentframe != 25 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
  128.                         {
  129.                            this._x -= movespeed;
  130.                            _xscale = - scale;
  131.                            this.gotoAndStop("run");
  132.                            attack = 0;
  133.                            moving = 1;
  134.                         }
  135.                         if(_root.char._currentframe == 45)
  136.                         {
  137.                            this.gotoAndStop("idle");
  138.                            moving = 0;
  139.                         }
  140.                         if(!moving && this._currentframe != 5)
  141.                         {
  142.                            moving = 0;
  143.                         }
  144.                         if(this._currentframe == 35)
  145.                         {
  146.                            this._x += movespeed;
  147.                         }
  148.                         jumpHits = 9;
  149.                         i = 1;
  150.                         while(i <= jumpHits)
  151.                         {
  152.                            jumpHit = _root.ground["jumpHit" + i];
  153.                            if(this.hitTest(jumpHit) && moving == 1)
  154.                            {
  155.                               grav = - jumpHeight;
  156.                               _Y = _Y - 4;
  157.                               moving = 0;
  158.                            }
  159.                            i++;
  160.                         }
  161.                         attack = 0;
  162.                         jumping = 0;
  163.                         if(!jumping && !above && !attack && this._currentframe != 25 && this._currentframe != 20 && this.hitTest(_root.char))
  164.                         {
  165.                            if(this._currentframe != 10 && this._currentframe != 15)
  166.                            {
  167.                               attack1();
  168.                            }
  169.                            if(this._currentframe != 10 && this._currentframe != 15)
  170.                            {
  171.                               attack = 0;
  172.                            }
  173.                         }
  174.                      }
  175.                   }
  176.                   break;
  177.                }
  178.                if(eval("\x01") == 245)
  179.                {
  180.                   set("\x01",eval("\x01") - 245);
  181.                }
  182.                break;
  183.             }
  184.             set("\x01",eval("\x01") - 210);
  185.             if(function ┬º\x01\x02┬º()
  186.             {
  187.                return 127 % 511 * 5;
  188.             })
  189.             {
  190.                set("\x01",eval("\x01") - 322);
  191.             }
  192.          }
  193.       }
  194.    }
  195. }
  196.